package com.freesky.biz.rights.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.freesky.common.core.domain.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@TableName("tec_rights_activity_rules")
public class RightsActivityRuleEntity extends BaseEntity {

    private String id;

    @NotBlank(message = "权益编号不能为空")
    private String activityId;

    @NotBlank(message = "类型不能为空")
    private String type;

    @NotNull(message = "序号不能为空")
    private Integer irasno;

    private String mchId;

    @NotBlank(message = "批次号不能为空")
    private String stockId;

    @NotNull(message = "有效期不能为空")
    private Integer validDays;

    @NotNull(message = "数量不能为空")
    private Integer amount;

    @NotBlank(message = "面额不能为空")
    private String amt;

    private String transactionMinimum;
    private String rulesMsg;
    private String delFlag;
}
